<?php

namespace app\common\model;

use app\common\model\BaseModel;

/**
 * 商家用户权限模型
 * Class Access
 * @package app\common\model\admin
 */
class WriterLog extends BaseModel
{
    protected $name = 'sys_log';

    /**
     * 获取所有权限
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public  function getAll()
    {

        $data = static::useGlobalScope(false)->order(['create_time' => 'desc'])->paginate(20, false, [
            'query' => \request()->request()
        ]);

        return $data;
    }
}
